@charset "utf-8";
@include ns(badge) {
  position: relative;
  vertical-align: middle;
  display: inline-block;
  sup {
    position: absolute;
    top: 0;
    right: 10px;
    transform: translateY(-50%) translateX(100%);
    background-color: #f56c6c;
    border-radius: 10px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #fff;
  }
  &.dot {
    sup {
      height: 8px;
      width: 8px;
      padding: 0;
      right: 0;
      border-radius: 50%;
      font-size: 0;
      text-indent: -9999px;
      overflow: hidden;
    }
  }
}
